-
Notifications
You must be signed in to change notification settings - Fork 268
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AAE-29424 Screens #10499
AAE-29424 Screens #10499
Conversation
@@ -0,0 +1,3 @@ | |||
<div> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this parent div required?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
removed
ngOnInit() { | ||
if (this.screenId) { | ||
this.screenComponent = { type: this.screenId }; | ||
const componentType = this.screenRenderingService.resolveComponentType(this.screenComponent); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
const componentType = this.screenRenderingService.resolveComponentType(this.screenComponent); | |
const componentType = this.screenRenderingService.resolveComponentType({ type: this.screenId }); |
instead of this.screenComponent = { type: this.screenId };
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not sure about it because we lose details about type, that probably should be here but maybe YAGNI. updated
*/ | ||
|
||
import { Injectable } from '@angular/core'; | ||
import { DynamicComponentMapper } from '../../../../core/src/lib/common/services/dynamic-component-mapper.service'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Import should be from `@alfresco/core, not relative path
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated
@@ -0,0 +1,37 @@ | |||
<div class="adf-task-form-cloud-container" > | |||
<adf-cloud-form #adfCloudForm |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we fix indentations?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated
mat-button | ||
*ngIf="showCancelButton" | ||
id="adf-cloud-cancel-task" | ||
(click)="onCancelClick()"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(click)="onCancelClick()"> | |
(click)="onCancelClick()" | |
> | |
{{'ADF_CLOUD_TASK_FORM.EMPTY_FORM.BUTTONS.CANCEL' | translate}} |
wdyt?
With this one, it is hard to see when button tag ends
(click)="onCancelClick()">
{{'ADF_CLOUD_TASK_FORM.EMPTY_FORM.BUTTONS.CANCEL' | translate}}
ps. can we add *ngIfs at the top of the buttons parameter lists?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated
</div> | ||
</div> | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated
(error)="onError($event)" | ||
color="primary" | ||
id="adf-form-complete" | ||
> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
> | |
> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated
None: '' | ||
} as const; | ||
|
||
type TaskTypesType = (typeof TaskTypes)[keyof typeof TaskTypes]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
type TaskTypesType = (typeof TaskTypes)[keyof typeof TaskTypes]; | |
type TaskTypesType = typeof TaskTypes[keyof typeof TaskTypes]; |
wdyt?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated
return !this.readOnly && this.taskCloudService.canUnclaimTask(this.taskDetails) && this.hasCandidateUsersOrGroups(); | ||
} | ||
|
||
getTaskType() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
getTaskType() { | |
getTaskType(): void { |
Can we add type also for others?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated
} | ||
} | ||
|
||
ngOnInit() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we move live hook to the top?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated
As discussed, can we change names to:
|
d542920
to
5c4fa3a
Compare
Quality Gate passedIssues Measures |
Please check if the PR fulfills these requirements
What kind of change does this PR introduce? (check one with "x")
What is the current behaviour? (You can also link to an open issue here)
What is the new behaviour?
https://hyland.atlassian.net/browse/AAE-29424
Does this PR introduce a breaking change? (check one with "x")
If this PR contains a breaking change, please describe the impact and migration path for existing applications: ...
Other information:
Component TaskFormCloudComponent has changed and now is used in:
libs/content-ee/process-services-cloud-extension/src/lib/features/task-details/components/task-details-cloud-ext/task-details-cloud-ext.component.html
and needs to be replaced with newly added UserTaskCloudComponent